﻿CREATE TABLE [dbo].[AppMenu] (
    [MenuId]     INT           IDENTITY (1, 1) NOT FOR REPLICATION NOT NULL,
    [ParentId]   INT           NULL,
    [Title]      NVARCHAR (50) NULL,
    [CId]        INT           NULL,
    [AId]        INT           NULL,
    [CreateTime] DATETIME      CONSTRAINT [DF_AppMenu_CreateTime] DEFAULT (getdate()) NULL,
    [Sort]       INT           NULL,
    CONSTRAINT [PK_AppMenu] PRIMARY KEY CLUSTERED ([MenuId] ASC)
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'菜单Id', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'AppMenu', @level2type = N'COLUMN', @level2name = N'MenuId';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'父Id', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'AppMenu', @level2type = N'COLUMN', @level2name = N'ParentId';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'菜单名称', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'AppMenu', @level2type = N'COLUMN', @level2name = N'Title';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Controller Id', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'AppMenu', @level2type = N'COLUMN', @level2name = N'CId';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Action Id', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'AppMenu', @level2type = N'COLUMN', @level2name = N'AId';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'创建时间', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'AppMenu', @level2type = N'COLUMN', @level2name = N'CreateTime';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'排序', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'AppMenu', @level2type = N'COLUMN', @level2name = N'Sort';

